#include "PlayerDetailScene.h"

PlayerDetailScene::PlayerDetailScene(void)
	:mScrollView(NULL)
{
}

PlayerDetailScene::~PlayerDetailScene(void)
{
	CC_SAFE_RELEASE(mScrollView);
}

bool PlayerDetailScene::init()
{
	return true;
}

SEL_MenuHandler PlayerDetailScene::onResolveCCBCCMenuItemSelector(CCObject * pTarget, CCString * pSelectorName )
{
	CCB_SELECTORRESOLVER_CCMENUITEM_GLUE(this, "onDoItClick", PlayerDetailScene::onDoItClick);
	return NULL;
}

SEL_CCControlHandler PlayerDetailScene::onResolveCCBCCControlSelector( CCObject * pTarget, CCString * pSelectorName )
{
	CCB_SELECTORRESOLVER_CCCONTROL_GLUE(this, "onInfoBtnClick", PlayerDetailScene::onInfoBtnClick);
	CCB_SELECTORRESOLVER_CCCONTROL_GLUE(this, "onTongJiBtnClick", PlayerDetailScene::onTongJiBtnClick);
	return NULL;
}

bool PlayerDetailScene::onAssignCCBMemberVariable( CCObject * pTarget, CCString * pMemberVariableName, CCNode * pNode )
{
	CCB_MEMBERVARIABLEASSIGNER_GLUE(this, "mScrollView", CCScrollView *, this->mScrollView);
	return false;
}

void PlayerDetailScene::onNodeLoaded( CCNode * pNode, CCNodeLoader * pNodeLoader )
{
	CCPoint point = ccp(0, -425);
	mScrollView->setContentOffset(point);
}

void PlayerDetailScene::onEnter()
{
	CCNode::onEnter();
}

void PlayerDetailScene::onExit()
{
	CCNode::onExit();
}

void PlayerDetailScene::refresh()
{

}

void PlayerDetailScene::_onNotification( CCObject* object )
{
	
}

void PlayerDetailScene::onDoItClick(CCObject* pSender)
{
    
}

void PlayerDetailScene::onInfoBtnClick( CCObject * pSender, CCControlEvent pCCControlEvent )
{

}

void PlayerDetailScene::onTongJiBtnClick( CCObject * pSender, CCControlEvent pCCControlEvent )
{

}
